<include file="Public/head" />
<link type="text/css" rel="stylesheet" href="{:get_style_cdnurl()}paimai/yunying/css/cashier.css" />
<include file="Public/common_header" />
<div class="mian">
<div class="mianL">
    <include file="Public/sidebar" menu="jybggl.bgd"/>
</div>
    <div class="mianR">
       <div class="yuyue">
         <ul>
            <li class="yuCurrent" onclick="get_list(0);">待执行</li>
            <li onclick="get_list(1);">已执行</li>
            <li onclick="get_list(2);">已完成</li>
            <li onclick="get_list(3);">拒绝执行</li>
            <li onclick="get_list(4);">作废</li>
         </ul>
         <input type="hidden" name="status" value="1" />
      </div>
	  <div class="live-seach">
        <form id="searchFrom">
			<ul class="clearfix order-seach">
        <li>
            <select name="location_area" id="location_area" class="select_model">
                <if condition="count($bc_city) gt 1">
                    <option value="">请选择所在地</option>
                </if>
                <volist name="bc_city" id="city">
                    <option value="{$key}">{$city}</option>
                </volist>
            </select>
        </li>
				<li><input type="text" value="" placeholder="拍单号" name="order_no" /></li>
				<li><input type="text" value="" placeholder="变更单号" name="modify_no" /></li>
				<li><input type="text" value="" placeholder="车辆编号" name="sno" /></li>
				<li><input type="text" value="" placeholder="车牌号" name="car_plate_number" /></li>
<!-- 				<li><input type="text" value="" placeholder="发起人" name="originator_name" /></li> -->
				<li class="collection"><input type="button" value="搜索" onclick="search();"  /></li>
			</ul>
        </form>
<!-- 			<div class="journal-btn clearfix"><a href="#" class="add-live">创建变更单</a></div> -->
	  </div> 
    <div class="listBox">      	
        
    </div>
    <div class="clear"></div>
	   <div class="yunBei"></div>
</body>
<script>
    get_list(0);
    function get_list(status){
        $('input[name=status]').val(status);
       $.get("/ChangeOrder/getList/status/"+status,$("#searchFrom").serialize(),function(data){
           $(".listBox").html(data);
           $("input").placeholder();
       },"html");
    }
    function get_page(p){
        var status = $('input[name=status]').val();
        var data = $("#searchFrom").serialize() + "&" +encodeURI("p="+p);
        $.get("/ChangeOrder/getList/status/"+status,data, function(data){
            $(".listBox").html(data);
            $("input").placeholder();
        },"html");
    }
    
    function search(){
        var status = $('input[name=status]').val();
        $.get("/ChangeOrder/getList/status/"+status,$("#searchFrom").serialize(),function(data){
            $(".listBox").html(data);
            $("input").placeholder();
        },"html");
    }
</script>
</html>
